home *** CD-ROM | disk | FTP | other *** search
- <html>
-
- <head>
- <meta name="GENERATOR" content="Microsoft FrontPage 3.0">
- <title>'Admin' Data Export</title>
- <link rel="stylesheet" type="text/css" href="css/rpmstyle.css">
-
- <style>
-
- .StatMsg { height:280; width:400; font-family:arial; font-size: 8pt; font-weight: 700; color: windowtext; background-color: threedlightshadow; }
- .StatMsg { overflow : scroll}
-
- </style>
-
- <script>
- <!--
- var SrvLupRecCnt = 0; // Count of records returned from Servers Lookup operation
- var SrvRecLth = 0; // Server record Length
-
- var LupRecCount = 0; // Count of records returned from Computer Lookup operation
- var ComputerRecLength = 9; // Computer Lookup record length
-
- var GrpLupRecCount = 0; // Count of records returned from Group Lookup operation
- var GrpSelectIdx = 0; // Index of currently selected Group
- var GroupRecLength = 4; // Length of a Group Lookup record in the Store
-
- var ELLupRecCount = 0; // Count of records returned from EL Lookup operation
- var ELAgIDArr = new Array();
- var ELAgIDArrIndx = 0;
-
- var ServicesRecCount = 0; // Count of records returned from Services Lookup operation
-
- var UserLupRecCount = 0; // Count of records returned from User Lookup operation
- var UserRecLength = 6; // User Lookup record length
-
- var AlertLupRecCount = 0; // Count of records returned from Alert Lookup operation
- var AlertRecLength = 23; // Alert Lookup record length
- var ServiceType = "0", CounterType = "1", EventLogType ="2", UserType = "3";
-
- var RptLupRecCount = 0; // Report Lookup record count
- var ReportRecLength = 7; // Report Lookup record length
-
- var SNMPTrapLupRecCount = 0;
-
- var bdH = 0;
- var byM = null;
- var borderSz = 2; // Thin Bord is 2pixels
- var Srd = null; // Server root directory
- var Tid = null;
-
- // Capture and ignore script errors
- window.onerror = wwScrErr;
- function wwScrErr() {
- return true;
- }
-
- /* On Load tell the Comm control to Connect to the Server */
- function InitRpmCC_AC() {
- top.MainLoaded = true; // Flag that Main is now loaded
- byM = 2*parseFloat(document.body.style.margin);
- processSizeChange();
- var Hp = parseInt(document.body.RPMHostPort,10);
- RpmCC_AC.Connect(document.body.RPMHostIP, Hp, "");
- }
- /* On Unload tell the Comm control to Disconnect from the Server */
- function DiscoRpmCC_AC() {
- RpmCC_AC.Disconnect();
- top.banner.processStopCommX();
- if ( Tid != null ) {
- clearTimeout(Tid); // stop timeout routine
- }
- }
- // Process Display View Size Change
- var SCbsy = false;
- function processSizeChange() {
- if ( SCbsy )
- return;
- SCbsy = true;
- // Display Height and Width
- bCh = document.body.clientHeight;
- bCw = document.body.clientWidth;
-
- //PopUpContext Menu
- PopUpContextSize(bCw);
- SCbsy = false;
- }
- function processResetButton() {
- SetCursor("auto");
- top.banner.processStopCommX();
- StatusPrintButton.disabled = ""; // enable button
- }
-
- /* Initiate Lookup of all Admin Data */
- function processConnectConfirmed() {
- RpmCC_AC.SecurityGet(); // Request Security State
- RpmCC_AC.GetAutoAgentRegister(); // Request AutoAgentRegister State
- RpmCC_AC.GetGlobalSMTP(); // Request Global SMTP address
- RpmCC_AC.GetGlobalBeeper(); // Request Global Pager/Beeper Port and Delay seconds
- }
-
- function processStartButton() {
- SetButtonState(CStartButton,"1");
- updateStatMessage("<br>{Exporting MonitorIT SERVER Records}<br>");
- if ( RpmCC_AC.AdminServersLookup("*") ) {
- updateStatMessage("Unable to start the SERVER LOOKUP request<br>");
- processResetButton(); // reset
- }
- else { // waiting for OperationCompleteEvent
- SetCursor("wait");
- top.banner.processStartComm();
- }
- }
- /* Process DB Error in Servers Lookup Operation */
- function processServersOpError() {
- updateStatMessage("An error occurred during requested operation<br>");
- processResetButton(); // reset
- }
- function processServersLookupRecord(ServerID,SNme,SDesc,SAddress,SPort) {
- ++SrvLupRecCnt; // Bump
- var StoreObj = document.all.AC_SrvStore; // Storage
- addElementToSelect(StoreObj,SNme);
- addElementToSelect(StoreObj,ServerID);
- addElementToSelect(StoreObj,SDesc);
- addElementToSelect(StoreObj,SAddress);
- addElementToSelect(StoreObj,SPort);
- SrvRecLth = 5;
- }
- /* Process Servers Lookup OP Complete Event */
- function processServersOpComplete() {
- updateStatMessage("-Total of "+SrvLupRecCnt+" MonitorIT Server Record(s) Processed<br>");
- updateStatMessage("<br>{Exporting GROUP Records}<br>");
- if ( RpmCC_AC.GroupLookup("","","") ) { // Server found, try Group lookup
- updateStatMessage("Unable to start the GROUP LOOKUP request<br>");
- processResetButton(); // reset
- }
- }
-
- /* Process Group LOOKUP RECORD Event */
- function processGroupLookupRecord(Gid,GrpName,GrpDesc) {
- GStoreObj = document.all.AC_GrpStore;
- ++GrpLupRecCount;
- addElementToSelect(GStoreObj,GrpName);
- addElementToSelect(GStoreObj,Gid);
- addElementToSelect(GStoreObj,GrpDesc);
- addElementToSelect(GStoreObj,0);
- GroupRecLength = 4;
- }
- /* Process DB Error in Group Lookup Operation */
- function processGroupOpError() {
- updateStatMessage("An error occurred during GROUP LOOKUP operation<br>");
- processResetButton(); // reset
- }
- /* Process Group OP Complete Event */
- function processGroupOpComplete() {
- updateStatMessage("-Total of "+GrpLupRecCount+" Group Record(s) Processed<br>");
- updateStatMessage("<br>{Exporting SERVER/COMPUTER Records}<br>");
- LupRecCount = 0; // initialize record counter
- ServiceCompName = null; // init the Service Record Computer Name
- if ( RpmCC_AC.ComputerLookup("*","*") ) {
- updateStatMessage("Unable to start the COMPUTER LOOKUP request<br>");
- processResetButton(); // reset
- }
- }
- /* Process Computer LOOKUP RECORD Event */
- function processComputerLookupRecord(Cid,Gid,SrvID,Name,Desc,Pswd,OSVer,Addr,Port) {
- ++LupRecCount; // bump record received counter
- StoreObj = AC_Store; // Storage
- addElementToSelect(StoreObj,Name);
- addElementToSelect(StoreObj,getGroupName(Gid));
- addElementToSelect(StoreObj,Desc);
- addElementToSelect(StoreObj,Pswd);
- addElementToSelect(StoreObj,OSVer);
- addElementToSelect(StoreObj,Addr);
- addElementToSelect(StoreObj,Port);
- addElementToSelect(StoreObj,getServerName(SrvID));
- addElementToSelect(StoreObj,Cid);
- }
- /* Process DB Error in Computer Lookup Operation */
- function processComputerOpError() {
- updateStatMessage("An error occurred during requested operation<br>");
- processResetButton(); // reset
- }
-
- /* Process Computer OP Complete Event */
- function processComputerOpComplete() {
- updateStatMessage("-Total of "+LupRecCount+" Server/Computer Record(s) Processed<br>");
- updateStatMessage("<br>{Exporting WATCH/ALERT Records}<br>");
- AlertLupRecCount = 0; // clear Lookup record counter
- if ( RpmCC_AC.AlertGroupLookup("*") ) {
- updateStatMessage("Unable to start the Alert LOOKUP request<br>");
- }
- }
- function AlertLupRecPart1(AlID, AlName, AlDesc, AlThresh, AlOver, AlEveryTime, AlDur, AlSched, AlSDT, AlEDT, AlArrayIDs) {
- ++AlertLupRecCount; // bump record received counter
- StoreObj = document.all.AC_AlertStore; // Storage
- if ( getAlertName(AlID) == "" ) { // if not received yet
- addElementToSelect(StoreObj,AlName); //+0
- addElementToSelect(StoreObj,AlID);
- addElementToSelect(StoreObj,AlDesc);
- addElementToSelect(StoreObj,AlThresh);
- addElementToSelect(StoreObj,AlOver); //+4
- addElementToSelect(StoreObj,AlEveryTime);
- addElementToSelect(StoreObj,AlDur);
- addElementToSelect(StoreObj,AlSched);
- addElementToSelect(StoreObj,AlSDT);
- addElementToSelect(StoreObj,AlEDT); //+9
- addElementToSelect(StoreObj,AlArrayIDs); //+10
- /* allocate space for Part 2 */
- addElementToSelect(StoreObj,""); //+11
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,""); //+14
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,""); //+19
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,""); //+22
- }
- else { // already received Part 2, update Part 1
- ASix = AlertSelectIdx * AlertRecLength;
- StoreObj.options[ASix+0].text = AlName;
- StoreObj.options[ASix+2].text = AlDesc;
- StoreObj.options[ASix+3].text = AlThresh;
- StoreObj.options[ASix+4].text = AlOver;
- StoreObj.options[ASix+5].text = AlEveryTime;
- StoreObj.options[ASix+6].text = AlDur;
- StoreObj.options[ASix+7].text = AlSched;
- StoreObj.options[ASix+8].text = AlSDT;
- StoreObj.options[ASix+9].text = AlEDT;
- StoreObj.options[ASix+10].text = AlArrayIDs;
- }
- }
-
- function AlertLupRecPart2(AlID, AlRunProg, AlProgNme, AlProgramArgs, AlENotify, AlEAddr, AlESubj, AlPhNotify, AlPhNumber, AlTextToSpeak, AlPgNotify, AlPgNumber, AlTextToSend) {
- StoreObj = document.all.AC_AlertStore; // Storage
- if ( getAlertName(AlID) == "" ) { // if not received yet
- // allocate space for Part 1
- addElementToSelect(StoreObj,"name"); //+0
- addElementToSelect(StoreObj,AlID);
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,""); //+4
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,"");
- addElementToSelect(StoreObj,""); //+9
- addElementToSelect(StoreObj,""); //+10
- /* save Part 2 */
- addElementToSelect(StoreObj,AlRunProg); //+11
- addElementToSelect(StoreObj,AlProgNme);
- addElementToSelect(StoreObj,AlProgramArgs);
- addElementToSelect(StoreObj,AlENotify); //+14
- addElementToSelect(StoreObj,AlEAddr);
- addElementToSelect(StoreObj,AlESubj);
- addElementToSelect(StoreObj,AlPhNotify);
- addElementToSelect(StoreObj,AlPhNumber);
- addElementToSelect(StoreObj,AlTextToSpeak); //+19
- addElementToSelect(StoreObj,AlPgNotify);
- addElementToSelect(StoreObj,AlPgNumber);
- addElementToSelect(StoreObj,AlTextToSend); //+22
- }
- else { // already received Part 2, update Part 1
- ASix = AlertSelectIdx * AlertRecLength;
- StoreObj.options[ASix+11].text = AlRunProg;
- StoreObj.options[ASix+12].text = AlProgNme;
- StoreObj.options[ASix+13].text = AlProgramArgs;
- StoreObj.options[ASix+14].text = AlENotify;
- StoreObj.options[ASix+15].text = AlEAddr;
- StoreObj.options[ASix+16].text = AlESubj;
- StoreObj.options[ASix+17].text = AlPhNotify;
- StoreObj.options[ASix+18].text = AlPhNumber;
- StoreObj.options[ASix+19].text = AlTextToSpeak;
- StoreObj.options[ASix+20].text = AlPgNotify;
- StoreObj.options[ASix+21].text = AlPgNumber;
- StoreObj.options[ASix+22].text = AlTextToSend;
- }
- }
- /* Process DB Error in Alert Lookup Operation */
- function processAlertOpError() {
- updateStatMessage("An error occurred during Alert LOOKUP operation<br>");
- processResetButton(); // reset
- }
- /* Get Alert Name from Store based on Alert ID */
- function getAlertName(UID) {
- UNobj = document.all.AC_AlertStore; // get object
- AlertName = "";
- for (i=0, j=0; i < UNobj.length; ++j, i+=AlertRecLength) {
- if ( UNobj.options[i+1].text == UID ) {
- AlertSelectIdx = j;
- AlertName = UNobj.options[i].text;
- break;
- }
- }
- return AlertName;
- }
- /* Process AlertGroupLookup Complete Event */
- function processAlertOpComplete() {
- //processCounterAlerts();
- updateStatMessage("-Total of "+AlertLupRecCount+" Watch/Alert Record(s) Processed<br>");
- updateStatMessage("<br>{Exporting SERVICES Records}<br>");
- ServicesRecCount = 0; // reset count
- if ( RpmCC_AC.ServicesLookup("","","ComputerID,ID DESC") ) { // if unable to initiate request
- updateStatMessage("Unable to start the Services LOOKUP request<br>");
- processResetButton(); // reset
- }
- }
- // Process Services LOOKUP Record Event
- function processServicesRecord(SRVstrg) {
- var warr = new Array();
- // strip off the Services ID
- var ix = SRVstrg.indexOf("~");
- SRVstrg = SRVstrg.substring(ix+1,SRVstrg.length);
- warr = SRVstrg.split("~");
- warr[0] = getComputerName(warr[0]); // get Computer Name in place of ID
- warr[1] = getAlertGroupName(warr[1]);
- SRVstrg = warr.join("~");
- addElementToSelect(AC_ServicesStore,SRVstrg);
- ++ServicesRecCount; // bump record counter
- }
- // Process Services Operation Complete Event
- function processServicesOpComplete() {
- updateStatMessage("-Total of "+ServicesRecCount+" Services Record(s) Processed<br>");
- updateStatMessage("<br>{Exporting EVENT LOG WATCH Records}<br>");
- ELLupRecCount = 0; // Clear Counter
- // See if any Alert Groups are Event Log types
- for ( var i=0, j=0; i<AC_AlertStore.length; i+=AlertRecLength ) {
- CSdt = AC_AlertStore.options[i+8].text; // check type
- if ( CSdt == "01/01/1999 11:40:00" || CSdt == "1/1/1999 11:40:0" ) {
- ELAgIDArr[j++] = AC_AlertStore.options[i+1].text;// save AGID
- }
- }
- // Go start Event Log record lookuo if any
- processELMonitorOpComplete();
- }
- // Process EL Lookup Op Complete
- function processELMonitorOpComplete() {
- if ( ELAgIDArrIndx >= ELAgIDArr.length ) { //if no more Event Log Alerts
- processEventLogDone();
- }
- else {
- if ( RpmCC_AC.ELMonitorLookupByAlertGroup(ELAgIDArr[ELAgIDArrIndx++]) ) {
- updateStatMessage("Unable to start the EventLog Watch LOOKUP request<br>");
- processResetButton(); // reset
- }
- }
- }
- // Process EL Lookup Record
- function processELMonitorLookupRecord(ELstrg) {
- var warr = new Array();
- // strip off the EL ID
- var ix = ELstrg.indexOf("~");
- ELstrg = ELstrg.substring(ix+1,ELstrg.length);
- warr = ELstrg.split("~");
- warr[1] = getComputerName(warr[1]); // get Computer Name in place of ID
- warr[2] = getAlertGroupName(warr[2]);
- ELstrg = warr.join("~");
- addElementToSelect(AC_ELStore,ELstrg);
- ++ELLupRecCount; // bump record counter
- }
- /* Process DB Error in EL Lookup Operation */
- function processELMonitorOpError() {
- updateStatMessage("An error occurred during EventLog Watch LOOKUP operation<br>");
- processResetButton(); // reset
- }
- function processEventLogDone() {
- updateStatMessage("-Total of "+ELLupRecCount+" EVENT LOG WATCH Record(s) Processed<br>");
- updateStatMessage("<br>{Exporting USER Records}<br>");
- UserLupRecCount = 0; // clear Lookup record counter
- if ( RpmCC_AC.UserLookup("","") ) {
- updateStatMessage("Unable to start the User LOOKUP request<br>");
- processResetButton(); // reset
- }
- }
- /* Process User LOOKUP RECORD Event */
- function processUserLookupRecord(Uid,UserName,UserDesc,UPswd,UAAdm,UAAnl) {
- ++UserLupRecCount; // bump record received counter
- StoreObj = AC_UserStore; // Storage
- UAAdm = (UAAdm == "0") ? "" : "checked";
- UAAnl = (UAAnl == "0") ? "": "checked";
- addElementToSelect(StoreObj,UserName);
- addElementToSelect(StoreObj,Uid);
- addElementToSelect(StoreObj,UserDesc);
- addElementToSelect(StoreObj,UPswd);
- addElementToSelect(StoreObj,UAAdm);
- addElementToSelect(StoreObj,UAAnl);
- }
- /* Process DB Error in User Lookup Operation */
- function processUserOpError() {
- updateStatMessage("An error occurred during User LOOKUP operation<br>");
- processResetButton(); // reset
- }
- /* Process User OP Complete Event */
- function processUserOpComplete() {
- updateStatMessage("-Total of "+UserLupRecCount+" User Record(s) Processed<br>");
- updateStatMessage("<br>{Exporting REPORT Records}<br>");
- if ( RpmCC_AC.AdminReportsLookup("*") ) {
- updateStatMessage("Unable to start the REPORT LOOKUP request<br>");
- processResetButton(); // reset
- }
- }
- /* Process Report LOOKUP RECORD Event */
- function processReportLookupRecord(Rid,RptName,RptDesc,RptD_T,AIA,CIA,MaxIntv) {
- ++RptLupRecCount; // bump record received counter
- RStoreObj = document.all.AR_RptStore; // Storage
- addElementToSelect(RStoreObj,RptName);
- addElementToSelect(RStoreObj,Rid);
- addElementToSelect(RStoreObj,RptDesc);
- addElementToSelect(RStoreObj,RptD_T);
- addElementToSelect(RStoreObj,AIA);
- addElementToSelect(RStoreObj,getComputerNameArray(CIA));
- addElementToSelect(RStoreObj,MaxIntv);
- ReportRecLength = 7; // length of a Storage record
- }
- /* Process Report OP Complete Event */
- function processReportOpComplete() {
- updateStatMessage("-Total of "+RptLupRecCount+" Report Record(s) Processed<br>");
- // Process SNMP records
- updateStatMessage("<br>{Exporting SNMP Trap WATCH Records}<br>");
- // Get OID definitions
- if ( RpmCC_AC.EnumOidDefs() ) { // if unable to initiate request
- updateStatMessage("Unable to start the OID Defs LOOKUP request<br>");
- processResetButton(); // reset
- }
- }
- function processOIDDefs(ostrg) {
- AC_TrapMonitorStore.OIDDefs = ostrg; // save OID Defs string
- if ( RpmCC_AC.EnumSnmpTrapMonitor() ) { // if unable to initiate request
- updateStatMessage("Unable to start the SNMP Trap Monitor LOOKUP request<br>");
- processResetButton(); // reset
- }
- }
- function processEnumSnmpTrapMonitor(TMstrg) {
- var warr = new Array();
- // If done reading all records
- if ( TMstrg == "Done" ) {
- processSNMPComplete();
- }
- else {
- // Check if error
- warr = TMstrg.split(":");
- if ( warr[0] == "Err" ) {
- updateStatMessage("An Error occurred reading SNMP Trap WATCH records<br>");
- processResetButton(); // reset
- }
- // Otherwise, process record
- else {
- warr = TMstrg.split("~");
- warr[2] = getComputerName(warr[2]); // get Computer Name in place of ID
- warr[3] = getAlertGroupName(warr[3]);
- TMstrg = warr.join("~");
- addElementToSelect(AC_TrapMonitorStore,TMstrg); // TrapMonitor Record
- ++SNMPTrapLupRecCount;
- }
- }
- }
- function processSNMPComplete() {
- updateStatMessage("-Total of "+SNMPTrapLupRecCount+" SNMP Trap WATCH Record(s) Processed<br>");
- updateStatMessage("<br>");
- RpmCC_AC.GetServerRootDir(); // get server root directory; wait for response
- }
- function AdminDataWrite() {
- Tid = null;
- var wH = RpmCC_AC.CreateLocalFile(Srd+"\\AdminData.sav");
- if ( wH == 0 ) {
- updateStatMessage("Error creating file to save 'Admin' Data<br>");
- }
- else {
- var aD = AdminDataStore.innerHTML;// get data
- var bytesW = RpmCC_AC.WriteLn(wH,aD);
- RpmCC_AC.CloseLocalFile(wH);
- if ( bytesW <= 0 ) {
- updateStatMessage("Error writing 'Admin' Data<br>");
- }
- else {
- updateStatMessage("Done Exporting 'Admin' Data<br>");
- RpmCC_AC.RegSetKey("AdminDataSaved","1"); // save flag
- }
- }
- top.Rstatus.Pstat("Done!");
- processResetButton(); // reset
- }
- /* Process DB Error in Report Lookup Operation */
- function processReportOpError() {
- updateStatMessage("An error occurred during Report LOOKUP operation<br>");
- processResetButton(); // reset
- }
-
- function SetButtonState(BtObj,BState) {
- BtObj.disabled = (BState == "0") ? "" : "disabled";
- BtObj.bdis = BState;
- }
-
- /* Add an <Option> entry with the text to the specified <Select> */
- function addElementToSelect(SelectObj,text) {
- var el = document.createElement("OPTION");
- el.text = text;
- SelectObj.options.add(el);
- return el;
- }
- /* Get Group Name from Store based on Group ID */
- function getGroupName(Gid) {
- var GrpName = "";
- for (var i=0; i < AC_GrpStore.length; i+=GroupRecLength) {
- if ( AC_GrpStore.options[i+1].text == Gid ) {
- GrpName = AC_GrpStore.options[i].text;
- break;
- }
- }
- return GrpName;
- }
- function getServerName(Sid) {
- var SrvName = "";
- for (var i=0; i < AC_SrvStore.length; i+=SrvRecLth) {
- if ( AC_SrvStore.options[i+1].text == Sid ) {
- SrvName = AC_SrvStore.options[i].text;
- break;
- }
- }
- return SrvName;
- }
- function getComputerName(Cid) {
- var CName = "";
- for (var i=0; i < AC_Store.length; i+=ComputerRecLength) {
- if ( AC_Store.options[i+8].text == Cid ) {
- CName = AC_Store.options[i].text;
- break;
- }
- }
- return CName;
- }
- function getComputerNameArray(CIA) {
- var warr = new Array();
- warr = CIA.split(","); // split out the Computer IDs
- for ( var j=0; j<warr.length; j++ ) {
- for (var i=0; i < AC_Store.length; i+=ComputerRecLength) {
- if ( AC_Store.options[i+8].text == warr[j] ) {
- warr[j] = AC_Store.options[i].text;
- break;
- }
- }
- }
- var newCIA = warr.join(",");
- return newCIA;
- }
- function getAlertGroupName(AGID) {
- var AGN = "";
- for ( var i=0; i<AC_AlertStore.length; i+=AlertRecLength ) {
- if ( AC_AlertStore.options[i+1].text == AGID ) {
- AGN = AC_AlertStore.options[i].text; // get Alert Group Name
- break;
- }
- }
- return AGN;
- }
- function processCounterAlerts() {
- var OCarr = new Array();
- var warr = new Array();
- var UNobj = document.all.AC_AlertStore; // get object
- for (var i=0; i < UNobj.length; ++j, i+=AlertRecLength) {
- if ( getCurrentAT(UNobj.options[i+8].text) == CounterType ) {
- OCarr = UNobj.options[i+10].text.split(";"); // get C,O,Cnt triplets
- for ( var j=0; j<OCarr.length; j++ ) {
- warr = OCarr[j].split(","); // split out Cid
- warr[0] = getComputerName(warr[0]); // convert CID to Name
- OCarr[j] = warr.join(","); // reform
- }
- UNobj.options[i+10].text = OCarr.join(";"); // put triplets back
- }
- }
- }
-
- function getCurrentAT(CSdt) {
- // Determine Alert Type
- if ( CSdt == "01/01/1999 11:30:00" || CSdt == "1/1/1999 11:30:0" ) {
- CurAT = ServiceType;
- }
- else if ( CSdt == "01/01/1999 11:50:00" || CSdt == "1/1/1999 11:50:0" ) {
- CurAT = UserType;
- }
- else if ( CSdt == "01/01/1999 11:40:00" || CSdt == "1/1/1999 11:40:0" ) {
- CurAT = EventLogType;
- }
- else {
- CurAT = CounterType;
- }
- return CurAT;
- }
-
- function SetCursor(ctyp) {
- document.body.style.cursor=ctyp;
- }
- function updateStatMessage(sMsg) {
- if ( top.banner.IE55orBetter ) {
- StatusMessage.insertAdjacentHTML("beforeEnd",sMsg);
- StatusMessage.scrollIntoView(false);
- }
- else {
- StatusMessageDiv.insertAdjacentHTML("beforeEnd",sMsg);
- }
- }
-
- function PopUpContextOpen() {
- }
- function PopUpContextClose() {
- }
-
- // Print Status
- var DiscStatWindow = null;
- function processPrintStatus() {
- if ( !top.banner.IE55orBetter ) {
- alert("Print requires IE 5.5/SP1 or greater. Download current, free IE update from Microsoft's web site");
- return;
- }
- FakeBut.click(); // simulate event to call "savePageCoord(...)"
- var wprop = "height="+top.banner.bCh+",width="+top.banner.bCw
- wprop += ",top="+(top.banner.bY-28)+",left="+(top.banner.bX-4)+",scrollbars";
- var rName = ""+Math.random(); // use Random number to get unique Window name
- rName = rName.substring(2,rName.length);
- DiscStatWindow = window.open("",rName,wprop);
- if ( DiscStatWindow == null ) {
- return;
- }
- var dh = "<html><head><title>MonitorIT - 'Admin' Data EXPORT Status Report</title>";
- dh += "<link rel='stylesheet' type='text/css' href='css/Rpmstyle.css'>";
- dh += "<style>#StatusMessage {height:280; width:400; font-family:arial; ";
- dh += "font-size: 10pt; font-weight: 700; color: windowtext;}</style></head><body";
- dh += " title='Exit to Close Window when Printing is complete'>";
- dh += StatusMessageDiv.innerHTML;
- dh += '<script LANGUAGE="JavaScript">window.focus();';
- dh += ' </script></body></html>';
- DiscStatWindow.document.open();
- DiscStatWindow.document.write(dh)
- DiscStatWindow.document.close();
- DiscStatWindow.print();
- }
-
-
- //-->
- </script>
- <script LANGUAGE="JavaScript" src="js/MiscFunc.js"></script>
-
- </head>
-
- <body class="bodyc" style="margin:2px;" RPMHostIP="!BreakoutBot:MonitorIP!"
- RPMHostPort="!BreakoutBot:MonitorPort!" RPMUserName="!BreakoutBot:UserName!" RPMCollectorPort="!BreakoutBot:CollectorPort!" RPMAgentPort="!BreakoutBot:AgentListenPort!"
- onload="top.banner.savePageCoord(event,document.body,'AdminDataBase');InitRpmCC_AC();" onbeforeunload="DiscoRpmCC_AC()" onresize="processSizeChange()" onclick="checkClick()" onkeydown="processBSP()">
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="EnumSnmpTrapMonitor(TMstrg)">
- <!--
- processEnumSnmpTrapMonitor(TMstrg);
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="EnumOidDefs(ostrg)">
- <!--
- processOIDDefs(ostrg);
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="GlobalSMTP(SMTPstrg)">
- <!--
- AC_AlertStore.SMTPSetting = SMTPstrg;
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="GlobalBeeper(BEEPstrg)">
- <!--
- AC_AlertStore.BeeperSetting = BEEPstrg;
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="ServerRootDir(srvrdir)">
- <!--
- Srd = srvrdir;
- Tid = setTimeout("AdminDataWrite()",100); // Delay then process
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="Connected()">
- <!--
- processConnectConfirmed();
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="ServicesRecord(SRVstrg)">
- <!--
- processServicesRecord(SRVstrg);
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="ServicesOpComplete()">
- <!--
- processServicesOpComplete();
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="ServicesOpError()">
- <!--
- processComputerOpError();
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="ComputerOpError()">
- <!--
- processComputerOpError();
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="ComputerLookupRecord(Cid,Gid,SrvID,Nme,Desc,Pswd,OSVer,Addr,Port)">
- <!--
- processComputerLookupRecord(Cid,Gid,SrvID,Nme,Desc,Pswd,OSVer,Addr,Port);
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="ComputerOpComplete()">
- <!--
- processComputerOpComplete();
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="GroupOpComplete()">
- <!--
- processGroupOpComplete();
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="GroupOpError()">
- <!--
- processGroupOpError();
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="GroupLookupRecord(Gid,GNme,GDesc)">
- <!--
- processGroupLookupRecord(Gid,GNme,GDesc);
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="ServersOpComplete()">
- <!--
- processServersOpComplete();
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="ServersOpError()">
- <!--
- processServersOpError();
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="ServersLookupRecord(ServerID,SNme,SDesc,SAddress,SPort)">
- <!--
- processServersLookupRecord(ServerID,SNme,SDesc,SAddress,SPort);
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="SecuritySetting(secVal)">
- <!--
- AC_UserStore.SecuritySetting = secVal;
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="SecurityOpError()">
- <!--
- updateStatMessage("Error reading Global Security setting<br>");
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="AutoAgentRegSetting(aarVal)">
- <!--
- AC_UserStore.AutoAgentSetting = aarVal;
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="AutoAgentRegOpOpError()">
- <!--
- updateStatMessage("Error reading Automatic Agent Registration setting<br>");
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="UserOpComplete()">
- <!--
- processUserOpComplete();
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="UserOpError()">
- <!--
- processUserOpError();
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="UserLookupRecord(Uid,UNme,UDesc,UPswd,UAAdm,UAAnl)">
- <!--
- processUserLookupRecord(Uid,UNme,UDesc,UPswd,UAAdm,UAAnl);
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="AdminReportsOpComplete()">
- <!--
- processReportOpComplete();
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="AdminReportsOpError()">
- <!--
- processReportOpError();
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="AdminReportsLookupRecord(Rid,RNme,RDesc,RptD_T,AIA,CIA,MaxIntv)">
- <!--
- processReportLookupRecord(Rid,RNme,RDesc,RptD_T,AIA,CIA,MaxIntv);
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="ELMonitorOpComplete()">
- <!--
- processELMonitorOpComplete();
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="ELMonitorOpError()">
- <!--
- processELMonitorOpError();
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="ELMonitorLookupRecord(ELCrec)">
- <!--
- processELMonitorLookupRecord(ELCrec);
- //-->
- </script>
-
- <script FOR="RpmCC_AC" EVENT="StartCommunication()">
- <!--
- top.banner.processStartComm();
- //-->
- </script>
- <script FOR="RpmCC_AC" EVENT="StopCommunication()">
- <!--
- top.banner.processStopComm();
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC"
- EVENT="AlertGroupLookupRecordPart1(AlID, AlName, AlDesc, AlThresh, AlOver, AlEveryTime, AlDur, AlSched, AlSDT, AlEDT, AlArrayIDs)">
- <!--
- AlertLupRecPart1(AlID, AlName, AlDesc, AlThresh, AlOver, AlEveryTime, AlDur, AlSched, AlSDT, AlEDT, AlArrayIDs);
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC"
- EVENT="AlertGroupLookupRecordPart2(AlID, AlRunProg, AlProgNme, AlProgramArgs, AlENotify, AlEAddr, AlESubj, AlPhNotify, AlPhNumber, AlTextToSpeak, AlPgNotify, AlPgNumber, AlTextToSend)">
- <!--
- AlertLupRecPart2(AlID, AlRunProg, AlProgNme, AlProgramArgs, AlENotify, AlEAddr, AlESubj, AlPhNotify, AlPhNumber, AlTextToSpeak, AlPgNotify, AlPgNumber, AlTextToSend);
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="AlertGroupOpComplete()">
- <!--
- processAlertOpComplete();
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" FOR="RpmCC_AC" EVENT="AlertGroupOpError()">
- <!--
- processAlertOpError();
- //-->
- </script>
-
- <script LANGUAGE="JavaScript" src="js/PopUpMenuFunc.js"></script>
-
- <!-- Invisible Object to Support Simulated Click Event -->
- <button id="FakeBut" style="display:none" onclick="top.banner.savePageCoord(event,document.body,'AdminDataExport')">
- </button>
-
- <object ID="RpmCC_AC" NAME="RpmCC_AC" WIDTH="14" HEIGHT="1" style="display: none"
- CLASSID="CLSID:D88C2358-FC83-11D1-BF49-00104B2D6F80"
- CODEBASE="controls/RPMComm.cab#version=5,2,0,0">
- <param name="_Version" value="65536">
- <param name="_ExtentX" value="2646">
- <param name="_ExtentY" value="1371">
- <param name="_StockProps" value="0">
- </object>
-
- <!--<br>-->
- <div id="TopL" align="center"><center>
-
- <div><center>
-
- <table class="fldset" border="2" width="475" cellspacing="2" cellpadding="2" height="150">
- <tr>
- <td>
- <table border="1" borderColor="menu" align="left">
- <tr><td borderColorDark="graytext" borderColorLight="white" height="25" style="font-weight:800; font-size:12pt; background-color:threedhighlight; color:windowtext"> <img src="images/DataSave.gif" align="absmiddle" height="17" width="16"> 'Admin' Data Export </td><td width="*"></td>
- </tr></table>
- </td>
- </tr>
- <tr>
- <td>
- <table border="0">
- <tr><td width="70" align="center" height="300"><img src="images/DataSave.gif" align="absmiddle" height="25" width="24"></td><td width="*"><div class="StatMsg" id="StatusMessageDiv"><span id="StatusMessage">Press Start Button to Begin Export of 'Admin' Data<br></span></div><div id="AdminDataStore" style="display:none">
- <select SIZE="1" NAME="AC_Store" style="display: none"></select>
- <select SIZE="1" NAME="AC_GrpStore" style="display: none"></select>
- <select SIZE="1" NAME="AC_SrvStore" style="display: none"></select>
- <select SIZE="1" NAME="AC_ServicesStore" style="display: none"></select>
- <select SIZE="1" NAME="AC_UserStore" AutoAgentSetting="1" SecuritySetting="0" style="display: none"></select>
- <select SIZE="1" NAME="AC_AlertStore" SMTPSetting="" BeeperSetting="" style="display: none"></select>
- <select SIZE="1" NAME="AR_RptStore" style="display: none"></select>
- <select SIZE="1" NAME="AC_ELStore" style="display: none"></select>
- <select SIZE="1" NAME="AC_TrapMonitorStore" OIDDefs="" style="display: none"></select>
- </div></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td width="650" align="center" height="30">
- <button id="CStartButton" title="Start the Process to Save Database 'Admin' Data" onclick="if (this.bdis == '0'){ processStartButton();}" bdis="0" style="width:80px; height:28px" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" ><img src="images/apply.gif" align="absmiddle" height="16" width="16"> Start</button> <button id="StatusPrintButton" title="Print 'Admin' Data Export Status Log" onclick="if (this.bdis == '0') processPrintStatus();" bdis="0" style="width:85px; height:29px" style="font-family:arial; font-size : 8pt; font-weight : 600; cursor:hand" DISABLED><img src="images/Printer.gif" align="absmiddle" height="15" width="17"> Print</button></td></tr>
-
- </table>
-
- </center></div>
-
- </center></div>
- </body>
- </html>
-